﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Skin> list = v.data("list") as List<Skin>; %>

<%if (list.Count > 0){ %>
<% foreach (Skin row in list) { %>
<div class="infolist" title="<%=row.name %>">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="10%"><%=row.Id %></td>
			<td width="35%"><%=row.name %></td>
			<td width="15%"><%=row.code %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.lockin==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass == 1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="20%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
                        <%if (bllPowerGroupService.powercheck("templates", "setting", modelpowergroup)) { %>
						<td><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SkinController().BakSkin, row.Id) %>?freshid='+Math.random(),'#{load}','_{skinmain_bak_log_mess_ok}','_{skinmain_bak_log_mess}',true,'_{skinmain_bak_log_mess_last}','selectform','selectall','check_all');" href="#body" title="_{setbak_botton}" hidefocus="true">_{setbak_botton}</a></td>
						<%} %>
						<%if (bllPowerGroupService.powercheck("templates", "setting", modelpowergroup)) { %>
						<td class="padding-left3">
                            <%if(row.isclass==0){ %>
							<a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SkinController().Setting, row.Id) %>?code=<%=row.code %>&isclass=1&freshid='+Math.random(),'#{load}','_{run_ok}','_{skinmain_class_log_mess}',true,'_{skinmain_isclass_mess}','selectform','selectall','check_all');" href="#body" title="_{setedit_botton}" hidefocus="true">_{setedit_userok}</a>
							<%}else{ %>
							<a class="setedit4" href="#body" title="_{setedit_userclose}" hidefocus="true">_{setedit_userclose}</a>
							<%} %>
						</td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("templates", "delskin", modelpowergroup) && row.lockin == 0) { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SkinController().DelSkin, row.Id) %>?isclass=<%=row.isclass %>&freshid='+Math.random(),'#{load}','_{run_ok}','_{skinmain_del_log_mess}',true,'_{del_messok}','selectform','selectall','check_all');" href="#body" title="_{setdel_botton}" hidefocus="true">_{setdel_botton}</a></td>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>